import { createApp } from 'vue'

import App from './App.vue'
import ElementPlus from 'element-plus'
//中文包
import  zhCn  from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
//引入自己的样式
import './styles/index.less'

import Antd from 'ant-design-vue'
// import 'ant-design-vue/dist/antd.css'
import { router } from './router'
const myApp = createApp(App);
myApp.directive("focus",{
    mounted(el:any,binding:any){
        console.log(el,binding);
        el.focus()
    }
})

myApp.use(Antd).use(router).use(ElementPlus, {
    locale: zhCn
}).mount('#app')
